# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class TP_item(scrapy.Item):
    id = scrapy.Field()
    code = scrapy.Field()
    name = scrapy.Field()
    full_time = scrapy.Field()
    full_res = scrapy.Field()

    # def __hash__(self):
    #     return hash(self['code'])
    #
    # def __eq__(self, other):
    #     return (
    #        self.__class__ == other.__class__ and self['code'] == other['code'])

#     code 和 full_time 作为唯一的日期

class label(scrapy.Item):
    id = scrapy.Field()
    lab = scrapy.Field()
    rec_time = scrapy.Field()